#define _CRT_SECURE_NO_WARNINGS  1
#include <math.h>
#include <stdio.h>

int main() {
    int n = 0;
    int m = 0;
    while (scanf("%d%d", &n, &m) == 2)
    {
        int x = 0;
        int y = 0;
        int t = 0;
        scanf("%d%d%d", &x, &y, &t);
        float arr[100][100];
        float sum = 0;
        for (int i = 0; i < n; i++)
        {
            for (int j = 0; j < m; j++)
            {
                scanf("%f", &arr[i][j]);
                sum += arr[i][j];
            }
        }
        float average = sum / n / m;
        x -= 1;
        y -= 1;
        if (average == arr[x][y])
        {
            printf("equal\n");
            printf("%0.2f\n", 1 - pow((1 - arr[x][y]), t));
        }
        else if (average > arr[x][y])
        {
            printf("ss\n");
            printf("%0.2f\n", 1 - pow((1 - average), t));
        }
        else
        {
            printf("cc\n");
            printf("%0.2f\n", 1 - pow((1 - arr[x][y]), t));
        }
    }
    return 0;
}